package com.xiaoc.bulldozer.common.dao;

import com.xiaoc.bulldozer.common.dto.AdvertiseQueryDto;
import com.xiaoc.bulldozer.common.model.Advertise;

import java.util.List;

/**
 * Advertise Mapper 接口
 *
 * @author Li Ruda
 * 
 * @date 2019-03-04 10:22:23
 */
public interface AdvertiseMapper {

    /**
     * 根据条件查询Advertise数量

     * @param AdvertiseQueryDto
     *
     * @return 满足查询条件的记录数量
     */
    public Integer getAdvertiseCountByCondition(AdvertiseQueryDto advertiseQueryDto);

    /**
     * 根据条件分页查询Advertise列表
     *
     * @param AdvertiseQueryDto
     *
     * @return 满足查询条件的Advertise列表
     */
    public List<Advertise> getAdvertiseListByCondition(AdvertiseQueryDto advertiseQueryDto);

    /**
     * 根据Id获取Advertise
     * 
     * @param id
     *
     * @return Advertise对象
     */
    public Advertise getAdvertiseById(Integer id);

    /**
     * 获取所有Advertise列表
     * 
     * @return Advertise列表
     */
    public List<Advertise> getAdvertiseList(String type);

    /**
     * 新增Advertise
     * 
     * @param Advertise
     *
     * @return void
     */
    public void save(Advertise advertise);

    /**
     * 更新Advertise
     * 
     * @param Advertise
     *
     * @return void
     */
    public void update(Advertise advertise);

    /**
     * 根据Id删除Advertise
     * 
     * @param id
     *
     * @return void
     */
    public void deleteById(Integer id);

}
